import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios';
Vue.prototype.axios=axios;
Vue.config.productionTip = false
axios .interceptors.request.use(function(config){
  store.state.isLoading=true;
  return config
})
axios.interceptors.response.use(function(response){
  store.state.isLoading=false;
  return response
})
import { loading } from 'vant';
Vue.use(loading)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

